<!DOCTYPE >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="${ctxPath}/wuhan/jquery.min.js"></script>
    <script type="text/javascript">
        var siteId = ${id};
    </script>
<link href="${ctxPath}/wuhan/stylewh3.css" rel="stylesheet" type="text/css" />

</head>

<body >

	<div id="wrapper">
        <div id="content-block">
		 
        		<div class="block">
                	<div class="pulse"><div class="pulse_div" >
                        <div class="label">达标情况</div>
                        <div id="sugar_num1">${erms.isMesureValid}</div>
                    </div>
					<div class="pulse_div2" >
                        <div class="label">国家标准</div>
                        <div id="sugar_num5">4000V/m</div>
                    </div>
                    <div class="pulse_info">
                        <div class="label">工频电场(实测值)</div>
                        <div id="pulse_num"><span id="pulse_num_value">${erms.mesure}</span>V/m</div>
                    </div>
                    </div>
                </div>
                <div class="block ">
                    <div class="ecg">

                        <div class="ecg_div">
                            <div class="label">达标情况</div>
                            <div id="sugar_num2">${erms.isMesure2Valid}</div>
                        </div>
                        <div class="ecg_info1">
                            <div class="label">国家标准</div>
                            <div id="cichang_num">100 μT</div>
                        </div>
                        <div class="ecg_info">
                            <div class="label">工频磁场(实测值)</div>
                            <div id="sugar_num">${erms.mesure2}μT</div>
                        </div>
                    </div>
                </div>
                <div class="block">
                    <div class="temp">
                       <div class="label">站点温度</div>
                        <div id="temp_num"><span id="temp_num_value">${erms.temperature}</span>&deg;C</div>
                    	<div id="temp_div"></div>
                    </div>
					
                    <div class="oximetry">
                       <div class="label">站点湿度</div>
                        <div id="oximetry_num"><span id="oximetry_num_value">${erms.humidity}</span>%</div>
                    	<div id="oximetry_div"></div>
                    </div>
                </div>

            </div>
    </div>
</body>
<script type="text/javascript">
    function refreshDate(){
        var url = "${ctxPath}/erms/erms.action";
        if(siteId!=-1){
            url += "?id="+siteId;
        }
        $.ajax({
            url: url,
            success: function (resp) {
                if (resp.status==1) {
                    var data = resp.data;
                    $('#pulse_num_value').text(data.mesure);
                    $('#sugar_num').text(data.mesure2+'μT');
                    $('#temp_num_value').text(data.temperature);
                    $('#oximetry_num_value').text(data.humidity);
                    $('#sugar_num1').text(data.isMesureValid);
                    $('#sugar_num2').text(data.isMesureValid);
                }else{
                    //alert('status='+resp.status);
                }
            }
        });
    }


    $.ajaxSetup({ cache: false });
    setInterval("refreshDate()", 3000);
</script>
</html>
